package com.ruoyi.hqfinance.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.hqfinance.domain.HqBaoGanSettleSheetAdjustDaily;
import com.ruoyi.hqfinance.domain.HqBaoGanSettleSheetAdjustMonth;
import com.ruoyi.hqfinance.domain.HqBaoGanSettleSheetDayBackwash;
import com.ruoyi.hqfinance.domain.HqBaoGanSettleSheetPreDaily;
import com.ruoyi.hqfinance.domain.vo.HqBaoGanSettleSheetVo;
import com.ruoyi.hqfinance.mapper.HqBaoGanSettleSheetAdjustDailyMapper;
import com.ruoyi.hqfinance.mapper.HqBaoGanSettleSheetAdjustMonthMapper;
import com.ruoyi.hqfinance.mapper.HqBaoGanSettleSheetDayBackwashMapper;
import com.ruoyi.hqfinance.mapper.HqBaoGanSettleSheetPreDailyMapper;
import com.ruoyi.hqfinance.service.HqBaoGanSettleSheetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqBaoGanSettleSheetServiceImpl implements HqBaoGanSettleSheetService {
    @Autowired
    private HqBaoGanSettleSheetPreDailyMapper hqBaoGanSettleSheetPreDailyMapper;
    @Autowired
    private HqBaoGanSettleSheetAdjustDailyMapper hqBaoGanSettleSheetAdjustDailyMapper;
    @Autowired
    private HqBaoGanSettleSheetAdjustMonthMapper hqBaoGanSettleSheetAdjustMonthMapper;
    @Autowired
    private HqBaoGanSettleSheetDayBackwashMapper hqBaoGanSettleSheetDayBackwashMapper;
    @Override
    public List<HqBaoGanSettleSheetPreDaily> collectByDayPre(HqBaoGanSettleSheetVo vo) {
        PageHelper.startPage(vo.getPageDate());
        return hqBaoGanSettleSheetPreDailyMapper.collectByDayPre(vo);
    }

    @Override
    public List<HqBaoGanSettleSheetAdjustDaily> collectAdjustDaily(HqBaoGanSettleSheetVo vo) {
        PageHelper.startPage(vo.getPageDate());
        return hqBaoGanSettleSheetAdjustDailyMapper.collectAdjustDaily(vo);
    }

    @Override
    public List<HqBaoGanSettleSheetAdjustMonth> collectAdjustMonth(HqBaoGanSettleSheetVo vo) {
        PageHelper.startPage(vo.getPageDate());
        return hqBaoGanSettleSheetAdjustMonthMapper.collectAdjustMonth(vo);
    }

    @Override
    public List<HqBaoGanSettleSheetDayBackwash> collectBackwash(HqBaoGanSettleSheetVo vo) {
        PageHelper.startPage(vo.getPageDate());
        return hqBaoGanSettleSheetDayBackwashMapper.collectBackwash(vo);
    }


}
